package parasoft.centrap.utils;

public class Util {

	
	public static boolean bitIsSet(long attr, long check){
		return ((attr & check) == check);
	}
	
	public static boolean bitIsUnset(long attr, long check){
		return ((attr & check) == 0);
	}
	
	public long brutto2Netto(long netto, long vat){
		return (netto * (1+vat));
	}
	public long netto2Brutto(long brutto, long vat){
		return (brutto / (1+vat));
	}
	public long cenaDet2NettoSpr(long cenaDtow, long vat){
		return (cenaDtow/100)/(1+vat);
	}
}
